﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MoneyProtocol
{
    /// <summary>
    /// 登录协议
    /// </summary>
    public class LoginProtocol
    {
        /// <summary>
        /// 客户端申请登录
        /// </summary>
        public const int LOGIN_CREQ = 0;
        /// <summary>
        /// 服务器反馈给客户端 登录结果
        /// </summary>
        public const int LOGIN_SRES = 1;

        /// <summary>
        /// 客户端申请注册
        /// </summary>
        public const int REG_CREQ = 2;
        /// <summary>
        /// 服务器反馈给客户端 注册结果
        /// </summary>
        public const int REG_SRES = 3;

        /// <summary>
        /// 客户端申请修改用户信息
        /// </summary>
        public const int UPDATEMSG_CREQ = 4;
        /// <summary>
        /// 服务端返回结果
        /// </summary>
        public const int UPDATEMSG_SRES = 5;

        /// <summary>
        /// 客户端申请获取用户信息
        /// </summary>
        public const int GETMSG_CREQ = 6;
        /// <summary>
        /// 服务端返回结果
        /// </summary>
        public const int GETMSG_SRES = 7;

        /// <summary>
        /// 客户端申请修改密码，发送数据格式“旧密码+新密码”
        /// </summary>
        public const int UPDATEPASSWORD_CREQ = 8;
        /// <summary>
        /// 返回结果int类型，若为-1，则旧密码验证失败，若为0，则修改密码失败，若为1，则修改密码成功
        /// </summary>
        public const int UPDATEPASSWORD_SRES = 9;

        public const int OFFLINE_CREQ = 10;
    }
}
